package com.cpit.platform.service;

import java.util.List;

import com.cpit.platform.common.entity.Result;
import com.cpit.platform.common.entity.TableDataQueryCondition;
import com.cpit.platform.common.entity.TableJsonData;
import com.cpit.platform.dto.User;

public interface UserService {
	User findByUsername(String username);

	List<User> findAllByOrganizationId(int organizationId);

	void insert(User record);

	int deleteByPrimaryKey(Integer userid);

	void updateByPrimaryKeySelective(User record);
	void updateUserToSubsustemUser(User u);
	List<User> selectUserList();

	User selectByPrimaryKey(Integer userid);

	public List<User> findByCondition(int page, 
			int size, 
			String order, 
			String orderBy, 
			String orgIdCondition,
			String userNamePattern);
	@SuppressWarnings("rawtypes")
	public TableJsonData findByConditionJqg(TableDataQueryCondition cond);
	@SuppressWarnings("rawtypes")
	public TableJsonData findSsUserByConditionJqg(TableDataQueryCondition cond);
	public Result<List> queryAllSubSystemUsers();
	public Result<List> queryUserRolesByUserId(Integer userid);
	public Result<List> querySubSystemUsersByUserId(Integer userid);
	public Result<List> querySubSystemUsersBySystemId(Integer systemid);
	public void deleteSubSystemUserById(Integer id);
}
